Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-54520] Soft fail in case of missing post during state cleanup #530

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

streamer45
Copy link
Collaborator

Summary

We log the error but otherwise proceed with cleaning up the state.

{"timestamp":"2023-09-25 09:12:36.362 -06:00","level":"error","msg":"failed to update call post","caller":"app/plugin_api.go:976","plugin_id":"com.mattermost.calls","origin":"main.(*Plugin).cleanCallState channel_state.go:317","err":"GetSinglePost: Unable to get the post."}

Ticket Link

https://mattermost.atlassian.net/browse/MM-54520

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Sep 25, 2023
@streamer45 streamer45 added this to the v0.20.0 / MM 9.1 milestone Sep 25, 2023
@streamer45 streamer45 requested a review from cpoile September 25, 2023 15:19
@streamer45 streamer45 self-assigned this Sep 25, 2023
@streamer45 streamer45 modified the milestones: v0.20.0 / MM 9.1, v0.19.2 Sep 25, 2023
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer, thanks!

@cpoile cpoile added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Sep 26, 2023
@streamer45 streamer45 merged commit da50993 into main Sep 29, 2023
@streamer45 streamer45 deleted the MM-54520 branch September 29, 2023 15:05
cpoile pushed a commit that referenced this pull request Oct 2, 2023
* Soft fail in case of missing post during state cleanup

* Add validity check on postID
@cpoile cpoile mentioned this pull request Oct 2, 2023
cpoile added a commit that referenced this pull request Oct 2, 2023
* [MM-54520] Soft fail in case of missing post during state cleanup (#530)

* Soft fail in case of missing post during state cleanup

* Add validity check on postID

* Fix potential nil dereference panic (#532)

---------

Co-authored-by: Claudio Costa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants